package cn.com.dycc.util;

public class MobileUtil {
	public static boolean  isMobileDevice(String requestHeader){
        /**
         * android : 鎵�湁android璁惧
         * mac os : iphone ipad
         * windows phone:Nokia绛墂indows绯荤粺鐨勬墜鏈�
         */
        String[] deviceArray = new String[]{"android","mac os","windows phone"};
        if(requestHeader == null)
            return false;
        requestHeader = requestHeader.toLowerCase();
        for(int i=0;i<deviceArray.length;i++){
            if(requestHeader.indexOf(deviceArray[i])>0){
                return true;
            }
        }
        return false;
}
}
